package com.lyc.demo.exceptions;

public class ExceptionTest {

    static void hoho() throws WoHuException {
        if (true) {
            throw new WoHuException("这是一波自定义异常测试！");
        }
    }

    public static void main(String[] args) {
        try {
            hoho();
        } catch (WoHuException e) {
            e.printStackTrace();
            System.out.println(e.getMessage());
        }
    }
}
